package com.think.teaching.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 用户课程
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public class CourseUser extends BaseModel<CourseUser> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程id
     */
    private Integer courseId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 选课时间
     */
    private Timestamp selectTime;

    /**
     * 学习状态
     */
    private Integer learnState;
    
    
    private Integer rate;

   
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Timestamp getSelectTime() {
        return selectTime;
    }

    public void setSelectTime(Timestamp selectTime) {
        this.selectTime = selectTime;
    }

    public Integer getLearnState() {
        return learnState;
    }

    public void setLearnState(Integer learnState) {
        this.learnState = learnState;
    }

    

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CourseUser{" +
        "id=" + id +
        ", courseId=" + courseId +
        ", studentId=" + studentId +
        ", selectTime=" + selectTime +
        ", learnState=" + learnState +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", delflag=" + delflag +
        ", state=" + state +
        "}";
    }

	public Integer getRate() {
		return rate;
	}

	public void setRate(Integer rate) {
		this.rate = rate;
	}
}
